package com.kikt.rxjavaandretrofit

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcelable
import com.kikt.rxjavaandretrofit.bean.ResultsItem

class ImageActivity : AppCompatActivity() {

    val l = ArrayList<ResultsItem>()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_image)

        val list: Array<out Parcelable>? = intent.getParcelableArrayExtra("list")
        list?.forEach {
            if(it is ResultsItem){
                l.add(it)
            }
        }



    }
}
